package redisdao

import (
	"context"
	"time"
	"vpn-management-server/src/dao"
)

func SetRedisValue(ctx context.Context, key string, value string, expirationTime time.Duration) error {
	return dao.RdsClient.SetString(ctx, key, value, expirationTime)
}

func GetRedisValue(ctx context.Context, key string) (string, error) {
	return dao.RdsClient.GetString(ctx, key)
}

func RedisKeyExists(ctx context.Context, key string) (bool, error) {
	return dao.RdsClient.Exists(ctx, key)
}
